package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsRole;

import java.util.List;
import java.util.Set;

/**
 * @author 千峰教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public interface DtsRoleService {
    Set<String> findRolesByIds(Integer[] roleIds);

    List<DtsRole> findAll();

    IPage<DtsRole> queryPage(Integer page, Integer limit, String sort, String order,String rolename);

    DtsRole add(DtsRole role);

    void deleteById(Integer id);

    void update(DtsRole role);

    Set<String> findRoleStrsById(Integer roleId);

    boolean isSuperAdmin(Integer roleId);

    void updatePermission(int roleId, String[] permissions);
}
